package com.heima.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_vending_machine")
public class Vm implements Serializable {//自动售货机
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private Integer vmType;//'售货机类型'
    private String innerCode;//'售货机软编号'
    private Long nodeId;//'点位Id'
    private Integer vmStatus;//'售货机状态，0:未投放;1-运营;3-撤机'
    private LocalDateTime lastSupplyTime; //'上次补货时间'
    private String cityCode;//'所在城市ID'
    private Integer areaId;//'区域id'
    private Long createUserId;//'创建人id'
    private String createUserName;//'创建人姓名'
    private Integer businessId;//'商圈Id'
    private Long regionId;//'所属区域Id'
    private Integer ownerId;//'点位主Id'
    private String ownerName;//'所属合作商名称'
    private String clientId;//'客户端连接Id,做emq认证用'
    private Double longitudes;//'经度'
    private Double latitude;//'维度'
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;//'创建时间'
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;//'修改时间'
}
